package com.service;

import java.util.Map;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.dao.FailMapper;
import com.entity.Fail;
import com.entity.Uploadfile;

@Service
public class FailService {
	
	@Resource
	FailMapper failMapper;
	
	public int insert(Fail fail){
		return failMapper.insert(fail);
	}
	
	public int insert2(Fail fail){
		return failMapper.insert2(fail);
	}
	
	public int insertuploadfileandyid(Uploadfile uploadfile){
		return failMapper.insertuploadfileandyid(uploadfile);
	}
	
	public int delete(Map<String,Object>map){
		return failMapper.delete(map);
	}
}
